<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>编辑通知公告</title>
<style>
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #e7f2fb;
}

.container {
  padding: 20px;
  background-color: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #007bff;
  color: white;
  position: relative;
}

.header .title {
  font-size: 20px;
}

.header .back-button,
.header .save-button {
  font-size: 18px;
  cursor: pointer;
}

.input-area {
  margin-bottom: 20px;
}

.input-area textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 150px;
  resize: none;
}

.add-image {
  text-align: center;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  cursor: pointer;
}

.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.switch-label {
  font-size: 16px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #007bff;
}

input:focus + .slider {
  box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
</style>
</head>
<body>

<div class="header">
  <div class="back-button">&lt; 返回</div>
  <div class="title">编辑通知公告</div>
  <div class="save-button">保存</div>
</div>

<div class="container">
  <div class="input-area">
    <textarea placeholder="请输入通知内容..."></textarea>
  </div>
  <div class="add-image">
    <span>添加图片</span>
    <span>+</span>
  </div>
  <div class="switch-container">
    <label for="important" class="switch-label">重要通知</label>
    <label class="switch">
      <input type="checkbox" id="important">
      <span class="slider round"></span>
    </label>
  </div>
</div>

</body>
</html>
